package com.study.demo.factorybean;

import org.springframework.beans.factory.BeanFactory;
import org.springframework.beans.factory.xml.XmlBeanFactory;
import org.springframework.core.io.ClassPathResource;
import org.springframework.core.io.Resource;

public class MainTest {

	public static void main(String[] args) {
		Resource res = new ClassPathResource("common-beans.xml");  
        BeanFactory factory = new XmlBeanFactory(res);  
        System.out.println(factory.getBean("factoryBeanOne").getClass());  
        System.out.println(factory.getBean("factoryBeanTwo").getClass());  
	}

}
